package com.example.data.factory.common.Dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InsertDictDataDto {
//    @ApiModelProperty("码表名称")
//    private String dictName;

    @ApiModelProperty(value = "码值名称", required = true)
    @Pattern(regexp = "^[\\u4E00-\\u9FA5A-Za-z]+$", message = "只能包含中文字符或大小写英文")
    private String dictLabel;

    @ApiModelProperty(value = "码值取值")
    private String dictValue;

    @ApiModelProperty("码值描述")
    private String description;
}
